package com.nep.NEPG.controller;

import com.nep.NEPG.model.AQIData;
import com.nep.NEPG.model.Task;
import com.nep.NEPG.repository.TaskRepository;
import javafx.event.ActionEvent;
import javafx.fxml.FXML;
import javafx.fxml.Initializable;
import javafx.scene.control.*;
import java.net.URL;
import java.util.ResourceBundle;

public class AQIDataDialogController implements Initializable {
     // ...所有@FXML注入的UI组件保持不变...

     private final TaskRepository taskRepository;
     private final Task task;
     private final AQIData aqiData;

     public AQIDataDialogController(TaskRepository taskRepository,
                                    Task task,
                                    AQIData aqiData) {
          this.taskRepository = taskRepository;
          this.task = task;
          this.aqiData = aqiData;
     }

     @Override
     public void initialize(URL url, ResourceBundle resourceBundle) {
          // ...初始化方法保持不变...
     }

     public void handleCancel(ActionEvent event) {
     }

     public void handleSave(ActionEvent event) {
     }

}